package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.domain.SuccessCode;
import com.atguigu.jxc.entity.ReturnList;

import java.util.Map;

/**
 * @Author: dongdong lau
 * @CreateTime: 2021/7/24 10:34
 * @Description: 退货接口层
 */
public interface ReturnService {

    /**
     * 新增退货单
     * @param returnList
     * @param returnListGoodsStr
     * @return
     */
    ServiceVO save(ReturnList returnList, String returnListGoodsStr);

    /**
     * 退货单列表展示
     * @param returnNumber
     * @param supplierId
     * @param state
     * @param sTime
     * @param eTime
     * @return
     */
    Map<String, Object> list(String returnNumber,
                             Integer supplierId,
                             Integer state,
                             String sTime,
                             String eTime);

    /**
     * 查询商品信息
     * @param returnListId
     * @return
     */
    public Map<String, Object> getReturnListGoodsById(Integer returnListId);


    /**
     * 根据purchaseListId删除进货单信息
     * @param returnListId
     * @return
     */
    ServiceVO<SuccessCode> deleteReturnListById(Integer returnListId);
}
